import 'package:flutter/material.dart';

class ZsnPause extends StatelessWidget {
  final bool pause;
  final Function playVideo;
  const ZsnPause({super.key, required this.pause, required this.playVideo});

  @override
  Widget build(BuildContext context) {
    return IconButton(
      icon: Icon(
        !pause ? Icons.pause : Icons.play_arrow,
        color: Colors.white,
      ),
      onPressed: () {
        playVideo();
      },
    );
  }
}
